package com.java.jvm.oom;

import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.List;

public class HeapTest04 {
    public static void main(String[] args) {
        List<SoftReference<byte[]>> cache=new ArrayList<>();
        for(int i=0;i<1000;i++){
            byte[] data=new byte[1024*1024];
            cache.add(new SoftReference<>(data));
        }
    }
}
